$ () ->
	$("#update_btn").click (e) ->
		if $("#update_status").val() is "2" || $("#update_status").val() is "1"
			window.location.href = "/order/update?id=" + $("#order_id").val()
		else
			alert "无修改权限"

	$("#cancel_btn").click (e) ->
		window.location.href = "/order/list"

